
import useStore from '@/store';
import { toJS } from 'mobx';

// hang
// 声明 window 对象的类型
declare global {
    interface Window {
        globalObj: any;
    }
}
window.globalObj = {
    useStore: useStore(),
    get permList() {
        const {
            useUserStore: { permissions },
        } = useStore();

        const permList = toJS(permissions);
        return permList;
    }
};
